<html>
<head><title>Chrome + After Burner</title></head>
<body style="margin: 0; cursor: none;">
<script src="../ext/promise.js"></script>
<script src="../tma.js"></script>
<script>
tma.extlibs = [ 'ext/gl-matrix.js', 'ext/mv/MajVj.js' ];
tma.onload = function () {
	var resolution = 1024;
	var vj = new MajVj(resolution, resolution);
	MajVj.loadAllPlugins().then(function () {
		var ab2 = vj.create('frame', 'ab2');
		vj.run(function (delta) {
			vj.screen().bind();
			vj.screen().fillColor(0.0, 0.0, 0.0, 1.0);
			ab2.draw(delta);
			vj.screen().flush();
		});
		window.onresize = function () {
			vj.onresize();
			var ratio = vj.aspect();
			ab2.onresize(ratio);
		};
	}, function (e) { console.log('plugin load error: ' + e); });
};
</script>
</body>
</html>
